Skip to content

ci: Auto-apply 27.lts cherry-pick label to main PRs#9187

Open
oxve wants to merge 3 commits intoyoutube:mainfrom
oxve:autolabel
Open

ci: Auto-apply 27.lts cherry-pick label to main PRs#9187
oxve wants to merge 3 commits intoyoutube:mainfrom
oxve:autolabel

Conversation

@oxve
Copy link
Contributor

@oxve oxve commented Feb 20, 2026

Introduce automatic labeling for pull requests merged into the main.
Changes originating on main are automatically identified as
candidates for cherry-picking to the 27.lts release branch
Additionally, update the known cherry-pick target branches to include
27.lts.1+ for other originating branches.

Bug: 484351320

@github-actions
Copy link
Contributor

🤖 Gemini Suggested Commit Message


ci: Auto-apply 27.lts label for main PRs

Introduce automatic labeling for pull requests merged into the main
branch to include the 'cp-27.lts.1+' cherry-pick label. This ensures
that changes originating on main are automatically identified as
candidates for cherry-picking to the 27.lts release branch, improving
the efficiency and consistency of the release branching process.
Additionally, update the known cherry-pick target branches to include
27.lts.1+.

Bug: 484351320

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request introduces a new GitHub Actions configuration file to automatically apply the cp-27.lts.1+ label to all pull requests merged into the main branch. This change seems straightforward and aims to streamline the cherry-picking process for the 27.lts.1+ branch. I've reviewed the changes and found one area for improvement regarding the glob pattern.

# These labels are automatically applied when a PR is merged.
'cp-27.lts.1+':
- changed-files:
- any-glob-to-any-file: '**'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using any-glob-to-any-file: '**' will apply the label to any change, which might be overly broad. If the intention is to only apply this label to changes that are relevant for cherry-picking to 27.lts.1+, consider a more specific glob pattern. For example, if only changes within a certain directory or with a specific file extension are relevant, the glob should reflect that. If the intent is truly for all files, then this is acceptable, but it's worth double-checking the scope.

labels=$LABEL_NAME
fi
- name: Auto-label PR
uses: actions/labeler@v5

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 0: GitHub-owned GitHubAction not pinned by hash
Click Remediation section below to solve this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant